package com.gitee.leijin.rbac.exception;

import com.gitee.leijin.rbac.enums.CodeEnum;
import lombok.Getter;

@Getter
public class BizException extends RuntimeException {

    private Integer code;

    public BizException(String message) {
        super(message);
    }

    public BizException(CodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.code = codeEnum.getCode();
    }

}
